package use.xstream;

public class Person {
	 
	  private String firstName;
	  private String lastname;
	  private PhoneNumber phone;
	  public PhoneNumber fax;
	  public byte[] photo;
	  // ... constructors and methods
	  public Person(String fname, String lname) {
			firstName=fname;
			lastname=lname;
		}
	public void setPhone(PhoneNumber p) {
		phone=p;
	}
	public void setFax(PhoneNumber p) {
		fax=p;
	}
	}

class PhoneNumber {
	  private int code;
	  public String number;
	  // ... constructors and methods
	  public PhoneNumber(int c, String n) {
			code=c;
			number=n;
		}
	}
